﻿@{
    Layout = null;
    var plugName = @news.admin.cyt369.com.Areas.NewsAdmin.Models.PlugName.Name;
    var tableName = PageViewModel.PageTableID(this, plugName);
    var auditIdFmtFun = PageViewModel.PageFunctionName(this, "AuditID_fmt", plugName);
}
<script type="text/javascript">
        function @auditIdFmtFun (v,r,i) {
            switch (v) {
                case 1:
                    return "未提交审核";
                case 1:
                    return "<span style='color:green'>通过审核</span>";
                case 2:
                    return "<span style='color:red'>未通过审核</span>";
                case 10:
                    return "提交审核";
            }
        }
</script>
<table id="@tableName" class="easyui-datagrid" style="width:100%;" rownumbers="true" fit="true" pagination="false"
       data-options="striped:true,border:false,singleSelect:true,url:'~/@plugName/Articles/GetDocumentAudits/@ViewBag.DocID',method:'get',fitColumns:true">
    <thead>
        <tr>
            <th data-options="field:'AuditStatusID',align:'center',formatter:@auditIdFmtFun" width="80">审核状态</th>
            <th data-options="field:'AuditTime',align:'center',formatter:$.DateTimeFmt" width="150">审核时间</th>
            <th data-options="field:'CanComment',align:'center',formatter:$.CheckdFormat" width="70">允许评论</th>
            <th data-options="field:'AuditUserName'" width="100">审核人</th>
            <th data-options="field:'AuditRemark'" width="250">审核内容</th>
        </tr>
    </thead>
</table>
